package cn.edu.xmu.restfuldemo.model;


import cn.edu.xmu.restfuldemo.model.OrderItem;
import lombok.Data;

@Data
public class OrderItemVo {
    private Integer skuId;
    private Integer quantity;
    private Integer couponActId;

    public OrderItem createOrderItem(){
        OrderItem orderItem = new OrderItem();
        orderItem.setGoodsSkuId(skuId);
        orderItem.setQuantity(quantity);
        orderItem.setCouponActivityId(couponActId);
        return orderItem;
    }
}
